/* 
 * File:   fruittest.cpp
 * Author: reinhard
 *
 * Created on March 11, 2011, 3:34 PM
 */

#include <stdlib.h>
#include "gtest/gtest.h"
#include "fruit.hpp"
#include "fruitconstants.hpp"
#include "game.hpp"


/*
  Fruit(int fruit_id);
  int getId();
  ItemType getType();
  bool isSeed();
  std::string getName();
  int getPrice();
 */

TEST(FruitTest, SingleTest) {
  Game* g = new Game("Irvan", "test.gag");
  Fruit f(g,1);
  EXPECT_EQ(f.getId(),1);
  EXPECT_FALSE(f.isSeed());
  EXPECT_EQ(f.getType(),kFruit);
  //getPrice & getName dicek di tempat lain

  delete g;
}




